package com.tpc.eb.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    private static final String DATE_FORMAT_STR="yyyy-MM-dd HH:mm:ss";
    private static final String DATEFORMATSTR="yyyyMMddHHmmss";
    public static String getNowDate() {
        Date date = new Date();
        return new SimpleDateFormat(DATE_FORMAT_STR).format(date);
    }
    public static String getNowDateNoInterval() {
        Date date = new Date();
        return new SimpleDateFormat(DATEFORMATSTR).format(date);
    }
}
